import request from '@/utils/request'

// 查询促销套餐明细列表
export function listGoodsPackageDetail(query) {
  return request({
    url: '/webshop/GoodsPackageDetail/list',
    method: 'get',
    params: query
  })
}

// 查询促销套餐明细详细
export function getGoodsPackageDetail(packageDetailId) {
  return request({
    url: '/webshop/GoodsPackageDetail/' + packageDetailId,
    method: 'get'
  })
}

// 新增促销套餐明细
export function addGoodsPackageDetail(data) {
  return request({
    url: '/webshop/GoodsPackageDetail',
    method: 'post',
    data: data
  })
}

// 修改促销套餐明细
export function updateGoodsPackageDetail(data) {
  return request({
    url: '/webshop/GoodsPackageDetail',
    method: 'put',
    data: data
  })
}

// 删除促销套餐明细
export function delGoodsPackageDetail(packageDetailId) {
  return request({
    url: '/webshop/GoodsPackageDetail/' + packageDetailId,
    method: 'delete'
  })
}
